package com.hecore.lagou.mr.output;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * @Author: hecore
 * @Date: 2020/10/18 21:52
 * @Description:
 *  由于数据格式的问题,不存在数据分类统计,只是筛选数据分到不同目录，所以用NullWriteAble
 *
 */

public class OutPutMapper extends Mapper<LongWritable, Text,Text, NullWritable> {

    @Override
    protected void map(LongWritable key,Text value,Context context) throws IOException, InterruptedException {
        context.write(value,NullWritable.get());
    }

}
